
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/rotation",
      name: "rotation",
      component: () => import("../views/Rotation.vue"),
    },
    {
      path: "/cityview",
      name: "cityview",
      component: () => import("../views/Cityview.vue"),
    },
    {
      path: "/g2charts",
      name: "g2charts",
      component: () => import("../views/G2charts.vue"),
    },
    {
      path: "/mapdraw/:type",
      name: "mapdraw",
      props:true,
      component: () => import("../views/MapDraw.vue"),
    },
    {
      path: "/eventinfo/:type",
      name: "eventinfo",
      props:true,
      component: () => import("../views/EventInfo.vue"),
    },
    {
      path: "/bridge",
      name: "bridge",
      props:true,
      component: () => import("../views/Bridge.vue"),
    },
    {
      path: "/modelview",
      name: "modelview",
      props:true,
      component: () => import("../views/Modelview.vue"),
    },
  ]
})

export default router
